package com.demo.petshop.service;

import com.demo.petshop.entity.Products;
import com.mybatisflex.core.service.IService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *  服务层。
 *
 * @author lenovo
 * @since 2025-06-11
 */
public interface ProductsService extends IService<Products> {
    Object product(int productId);

    Object category(int categoryId);

    Object search(String keyword);

    Object orderBySale(int categoryId);

    Object orderByPrice(int categoryId);

    Object reOrderByPrice(int categoryId);

    Object getProducts(int storeId);

    Object getByVideoId(int videoId);

    Object getProductSpec(int productId);

    Object getProductVideos(int productId);

    Object getProductReviews(Integer productId);

    Object updateProduct(Products products);

    Object getStoreByProductId(int productId);

    Object productList();

    Object getProductsListByMemberLevel();

    Object createProduct(Products products);

    Object delete(Integer productId);
    Object searchOfStoreId(String keyword,int storeId);

    Object categoryOfStoreId(int categoryId,int storeId);

    Object orderByPriceOfStoreId(int categoryId,int storeId);

    Object orderBySaleOfStoreId(int categoryId,int storeId);

    Object reOrderByPriceOfStoreId(int categoryId,int storeId);
}
